<?php 
$username = $this->session->userdata('username');
$password = $this->session->userdata('password');
if (empty($username) AND empty($password)){
	echo"..";
}else{
?>
<div id="wrappercontent">
	<?php foreach($departemen as $data): ?>
	<?php echo form_open('login/proses_update_departemen/'.$data->id_dept); ?>
		Departemen
		<p style="margin-top:5px;"><input type="text" name="nm_dept" value="<?php echo $data->nm_dept ?>"></p>
		<p style="margin-top:20px;">
			<input type="submit" value="Update" class="btn btn-danger">
		</p>
	<?php echo form_close(); ?>
	<?php endforeach ?>
</div>
<?php
}
?>